<?php

use think\facade\Route;

/** 知识点 */
Route::group('/admin/question/point', function () {
    Route::get('list', 'index'); // 列表
    Route::post('create', 'create'); // 新增 - 提交
    Route::group('<id>', function () {
        Route::get('children', 'getChildren'); // 知识点列表
        Route::put('edit', 'edit'); // 修改 - 提交
        Route::delete('delete', 'delete'); // 删除
    })->pattern(['id' => '\d+']);
    // 选择知识点
    Route::get('choose', 'choose');
    // 选择知识点的列表数据
    Route::get('getChooseList', 'getChooseList');
})->prefix('\app\exam\service\admin\QuestionPoint@')->middleware(['adminRoute']);